package service.contract.impl;


import java.util.List;

import dao.ContractcheckDao;

import service.contract.ContractCheckService;

import model.contract.Contractcheck;

public class ContractCheckServiceImpl implements ContractCheckService {
	private ContractcheckDao contractcheckDao;
	@Override
	public String contractCheckSave(Contractcheck contractcheck) {
		contractcheckDao.save(contractcheck);		
		return "合同审核完成";
	}
	@Override
	public List checkList() {
		String select="new vo.ContractCheckBean(chk.contractkey,contract.contractId,chk.opinion,chk.content,chk.userid,chk.checktime)";
		String hql="Contractcheck as chk,TContract as contract where contract.id=chk.contractkey";
		List checklist=contractcheckDao.findQuery(select, hql, 10);
		return checklist;
	}
	////////////////////////
	public ContractcheckDao getContractcheckDao() {
		return contractcheckDao;
	}
	public void setContractcheckDao(ContractcheckDao contractcheckDao) {
		this.contractcheckDao = contractcheckDao;
	}

}
